From 6b9a3c9057244c5d1a6032e0e5a1e62b53247bc4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 3 Sep 2009 11:30:12 +0200 Subject: [PATCH] =?utf8?q?Bug=C2=A0584638=20-=20Build=20of=20gtkupdateicon?= =?utf8?q?cache=20without=20NLS=20breaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Wrap textdomain calls in updateiconcache.c in NLS conditionals. --- gtk/updateiconcache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 02d0047911..3b927011cc 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -1656,8 +1656,12 @@ main (int argc, char **argv) setlocale (LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, GTK_LOCALEDIR); +#ifdef HAVE_BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif +#endif context = g_option_context_new ("ICONPATH"); g_option_context_add_main_entries (context, args, GETTEXT_PACKAGE); -- 2.30.2